<include file="Common@Backend/header" />

    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            {$breadcrumb.A}
        </h3>
        <ul class="breadcrumb">
            <li>
                {$breadcrumb.M}
            </li>
            <li>
                {$breadcrumb.C}
            </li>
            <li class="active"> {$breadcrumb.A}  </li>
        </ul>
    </div>
    <!-- page heading end-->
    
    <!--body wrapper start-->
    <div class="wrapper">
        <div class="row">
            <div class="col-sm-12">
                <section class="panel">
                    <header class="panel-heading">
                        {$title}
                    </header>
                    <div class="panel-body">
                        <div class="clearfix">
                            <div class="btn-group">
                                <a class="btn btn-primary" href="{$addNew}">
                                   <i class="fa fa-plus"> {$addText} </i>
                                </a>
                            </div>
                            <notempty name="back">
                            <div class="btn-group">
                                <a class="btn btn-primary" href="{$back}">
                                   <i class="fa fa-reply"> 返回 </i>
                                </a>
                            </div>
                            </notempty>
                        </div>
                        <div class="space15"></div>
                        <section id="unseen" style="margin-top: 15px;">
                            <table class="table table-bordered table-striped table-condensed">
                                <thead>
                                <tr>
                                    <th>商品名称</th>
                                    <th>关键词</th>
                                    <th>库存量</th>
                                    <th>价格</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="list" item="vo">
                                    <tr>
                                        <td>{$vo['com_name']}</td>
                                        <td>{$vo['com_keywords']}</td>
                                        <td>{$vo['com_store']}</td>
                                        <td>{$vo['com_price']}</td>
                                        <td>
                                            <a href="{$edit}?id={$vo['id']}" title="编辑" class="btn btn-primary"><i class="fa fa-edit"></i></a>
                                            <a href="{$del}?id={$vo['id']}" title="删除" class="btn btn-danger"><i class="fa fa-times"></i></a>
                                        </td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                        </section>
                    </div>
                </section>
                {$page}
            </div>
        </div>
    </div>
    <!--body wrapper end-->
<include file="Common@Backend/footer" />